import { API_V1_URL } from '@/config/api';
import { Caddie } from '@/types/caddie';
import { AnyObject, HttpResponse, PageResponse } from '@/types/global';
import axios from 'axios';

// eslint-disable-next-line import/prefer-default-export
export function getCourseUserList(data: AnyObject) {
  return axios.post<HttpResponse<PageResponse<Caddie>>>(
    `${API_V1_URL}/ip/course/user/page`,
    data
  );
}
